package com.ceba.test.base.enums;

/**
 * 发送邮件类型
 * @author Administrator
 */
public enum EmailTypeEnum {
	SIMPLE_EMAIL(1,org.apache.commons.mail.SimpleEmail.class,"简单的邮件","MODULES_SIMPLE_MAIL"),//简单邮件：不含附件，内容不是html
	MULTI_PART_EMAIL(2,org.apache.commons.mail.MultiPartEmail.class,"包含附件的邮件","MODULES_MAIL_CONTAINING_ATTACHMENTS"),//含附件
	HTML_EMAIL(3,org.apache.commons.mail.HtmlEmail.class,"内容是HTML的邮件","MODULES_CONTENT_HTML_MAIL"),//HTML内容 ，含附件
	IMAGE_HTML_EMAIL(4,org.apache.commons.mail.ImageHtmlEmail.class,"包含附件的邮件","MODULES_MAIL_CONTAINING_ATTACHMENTS");//HTML内容，含附件，HTML内嵌图片
	
	private int flag;//标识
	private Class calsss;//类
	private String explain;//说明
	 private String resourceName;
	private EmailTypeEnum(int flag,Class calsss,String explain,String resourceName){
		this.flag=flag;
		this.calsss=calsss;
		this.explain=explain;
		this.resourceName = resourceName;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public Class getCalsss() {
		return calsss;
	}
	public void setCalsss(Class calsss) {
		this.calsss = calsss;
	}
	public String getExplain() {
		return explain;
	}
	public void setExplain(String explain) {
		this.explain = explain;
	}
	public String getResourceName() {
		return resourceName;
	}
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}
	
	
}
